package cn.edu.sgu.www.mhxysy.entity.chongwu;

import cn.edu.sgu.www.mhxysy.consts.IdentifierPrefixes;
import cn.edu.sgu.www.mhxysy.util.StringUtils;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 宠物（召唤灵）
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Data
@ApiModel
@TableName("chongwu")
public class Chongwu implements Serializable {
	private static final long serialVersionUID = 18L;

	@TableId(value = "id", type = IdType.INPUT)
	@ApiModelProperty(value = "ID")
	private String id;

	/**
	 * 宠物名字
	 */
	@ApiModelProperty(value = "宠物名字")
	private String name;

	/**
	 * 宠物资质类型
	 * 0-野生；1-宝宝；2-变异
	 */
	@ApiModelProperty(value = "宠物类型")
	private Integer zizhiType;

	/**
	 * 宠物等级
	 */
	@ApiModelProperty(value = "宠物等级")
	private Integer grade;

	/**
	 * 宠物评分
	 */
	@ApiModelProperty(value = "宠物评分")
	private Integer score;

	/**
	 * 宠物寿命
	 */
	@ApiModelProperty(value = "宠物寿命")
	private Integer lifespan;

	/**
	 * 角色ID
	 */
	@ApiModelProperty(value = "角色ID")
	private String roleId;

	/**
	 * 宠物类型ID
	 */
	@ApiModelProperty(value = "宠物类型ID")
	private Integer categoryId;

	/**
	 * 统御状态
	 */
	@ApiModelProperty(value = "统御状态")
	private Integer tongyuStatus;

	public String uuid() {
		return IdentifierPrefixes.PREFIX_CHONGWU + StringUtils.uuid();
	}

}